<!doctype html>
<html lang="zh-Hans">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="assets/css/bootstrap.min.css" >
    <link rel="stylesheet" href="assets/css/fontawesome.min.css" >
    <link rel="stylesheet" href="assets/css/backend.css" >
    <title>Fresns 管理中心</title>
  </head>
  <body>
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark fresns-navbar">
      <a class="navbar-brand" href="#"><img src="assets/images/logo.png" height="30" alt="Fresns"></a>
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
      </button>
      <div class="collapse navbar-collapse" id="navbarNav">
        <ul class="navbar-nav mr-auto">
          <li class="nav-item"><a class="nav-link" href="index.html">仪表盘</a></li>
          <li class="nav-item active"><a class="nav-link" href="system-language.html">系统</a></li>
          <li class="nav-item"><a class="nav-link" href="operating-user.html">运营</a></li>
          <li class="nav-item"><a class="nav-link" href="themes.html">主题</a></li>
          <li class="nav-item"><a class="nav-link" href="plugins.html">插件</a></li>
          <li class="nav-item"><a class="nav-link" href="clients.html">客户端</a></li>
          <li class="nav-item"><a class="nav-link" href="store.html">应用市场</a></li>
        </ul>
        <span class="navbar-text">admin <a href="#">[退出]</a> <a href="https://fresns.cn" target="_blank">站点首页</a></span>
      </div>
    </nav>

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-xl-2 fresns-sidebar">
          <h3 class="d-none d-sm-block">系统</h3>
          <button class="btn btn-primary btn-block d-block d-sm-none" type="button" data-toggle="collapse" data-target="#sidebarNav" aria-controls="sidebarNav" aria-expanded="true">
            <i class="fas fa-list-ul"></i> 系统
          </button>
          <div class="collapse show" id="sidebarNav">
            <ul class="nav flex-column">
              <li class="nav-item"><a class="nav-link active" href="system-language.html"><i class="fas fa-language"></i> 语言设置</a></li>
              <li class="nav-item"><a class="nav-link" href="system-site.html"><i class="fas fa-tools"></i> 站点设置</a></li>
              <li class="nav-item"><a class="nav-link" href="system-send.html"><i class="far fa-paper-plane"></i> 发信设置</a></li>
              <li class="nav-item"><a class="nav-link" href="system-account.html"><i class="far fa-user"></i> 账号设置</a></li>
              <li class="nav-item"><a class="nav-link" href="system-wallet.html"><i class="far fa-credit-card"></i> 钱包设置</a></li>
              <li class="nav-item"><a class="nav-link" href="system-storage.html"><i class="far fa-folder-open"></i> 存储设置</a></li>
              <li class="nav-item"><a class="nav-link" href="system-map.html"><i class="fas fa-map-marked-alt"></i> 地图设置</a></li>
            </ul>
            <div class="fresns-copyright">
              <p>Powered by Fresns</p>
            </div>
          </div>
        </div>

        <div class="col-sm-9 col-xl-10 fresns-content">
          <h3>语言设置</h3>

          <!-- Setting Start -->
          <div class="fresns-table">
            <div class="row">
              <div class="col-md-3">
                <div class="alert alert-warning" role="alert">
                  <div class="custom-control custom-switch">
                    <input type="checkbox" class="custom-control-input" id="multi-language" checked>
                    <label class="custom-control-label" for="multi-language">是否开启多语言</label>
                  </div>
                </div>
              </div>
              <div class="col-md-9">
                <div class="alert alert-secondary" role="alert">
                  多语言需要先在这里配置语言选项，然后才能在对应配置项时录入多语言内容。
                </div>
              </div>
            </div>
            <div class="table-responsive">
              <table class="table table-hover">
                <thead class="thead-light">
                  <tr>
                    <th scope="col">显示顺序</th>
                    <th scope="col">默认语言</th>
                    <th scope="col">语言代码</th>
                    <th scope="col">地区代码</th>
                    <th scope="col">语言名称</th>
                    <th scope="col">地区名称</th>
                    <th scope="col">长度单位</th>
                    <th scope="col">书写方向</th>
                    <th scope="col">语言包管理</th>
                    <th scope="col">操作</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td class="align-middle"><input type="number" class="form-control" value="1" style="width:100px;"></td>
                    <td class="align-middle">
                      <div class="custom-control custom-radio custom-control-inline">
                        <input type="radio" id="zh-Hans-CN" name="default_language" class="custom-control-input" checked>
                        <label class="custom-control-label" for="zh-Hans-CN">默认</label>
                      </div>
                    </td>
                    <td class="align-middle">zh-Hans</td>
                    <td class="align-middle">CN</td>
                    <td class="align-middle" lang="zh-Hans-CN">简体中文</td>
                    <td class="align-middle" lang="zh-Hans-CN">中国大陆</td>
                    <td class="align-middle">公里 km</td>
                    <td class="align-middle">ltr</td>
                    <td class="align-middle">
                      <button type="button" class="btn btn-outline-info btn-sm">配置</button>
                    </td>
                    <td class="align-middle">
                      <button type="button" class="btn btn-outline-primary btn-sm" data-toggle="modal" data-target="#language">修改</button>
                      <a href="#" class="btn btn-link btn-sm text-danger" role="button">删除</a>
                    </td>
                  </tr>
                  <tr>
                    <td class="align-middle"><input type="number" class="form-control" value="2" style="width:100px;"></td>
                    <td class="align-middle">
                      <div class="custom-control custom-radio custom-control-inline">
                        <input type="radio" id="zh-Hans-SG" name="default_language" class="custom-control-input">
                        <label class="custom-control-label" for="zh-Hans-SG">默认</label>
                      </div>
                    </td>
                    <td class="align-middle">zh-Hans</td>
                    <td class="align-middle">SG</td>
                    <td class="align-middle" lang="zh-Hans-SG">简体中文</td>
                    <td class="align-middle" lang="zh-Hans-SG">新加坡</td>
                    <td class="align-middle">公里 km</td>
                    <td class="align-middle">ltr</td>
                    <td class="align-middle">
                      <button type="button" class="btn btn-outline-info btn-sm">配置</button>
                    </td>
                    <td class="align-middle">
                      <button type="button" class="btn btn-outline-primary btn-sm" data-toggle="modal" data-target="#language">修改</button>
                      <a href="#" class="btn btn-link btn-sm text-danger" role="button">删除</a>
                    </td>
                  </tr>
                  <tr>
                    <td class="align-middle"><input type="number" class="form-control" value="3" style="width:100px;"></td>
                    <td class="align-middle">
                      <div class="custom-control custom-radio custom-control-inline">
                        <input type="radio" id="zh-Hans-HK" name="default_language" class="custom-control-input">
                        <label class="custom-control-label" for="zh-Hans-HK">默认</label>
                      </div>
                    </td>
                    <td class="align-middle">zh-Hant</td>
                    <td class="align-middle">HK</td>
                    <td class="align-middle" lang="zh-Hant-HK">繁體中文</td>
                    <td class="align-middle" lang="zh-Hant-HK">香港</td>
                    <td class="align-middle">公里 km</td>
                    <td class="align-middle">ltr</td>
                    <td class="align-middle">
                      <button type="button" class="btn btn-outline-info btn-sm">配置</button>
                    </td>
                    <td class="align-middle">
                      <button type="button" class="btn btn-outline-primary btn-sm" data-toggle="modal" data-target="#language">修改</button>
                      <a href="#" class="btn btn-link btn-sm text-danger" role="button">删除</a>
                    </td>
                  </tr>
                  <tr>
                    <td class="align-middle"><input type="number" class="form-control" value="4" style="width:100px;"></td>
                    <td class="align-middle">
                      <div class="custom-control custom-radio custom-control-inline">
                        <input type="radio" id="en-US" name="default_language" class="custom-control-input">
                        <label class="custom-control-label" for="en-US">默认</label>
                      </div>
                    </td>
                    <td class="align-middle">en</td>
                    <td class="align-middle">US</td>
                    <td class="align-middle" lang="en">English</td>
                    <td class="align-middle" lang="en">United States</td>
                    <td class="align-middle">英里 mi</td>
                    <td class="align-middle">ltr</td>
                    <td class="align-middle">
                      <button type="button" class="btn btn-outline-info btn-sm">配置</button>
                    </td>
                    <td class="align-middle">
                      <button type="button" class="btn btn-outline-primary btn-sm" data-toggle="modal" data-target="#language">修改</button>
                      <a href="#" class="btn btn-link btn-sm text-danger" role="button">删除</a>
                    </td>
                  </tr>
                  <tr>
                    <td class="align-middle"><input type="number" class="form-control" value="5" style="width:100px;"></td>
                    <td class="align-middle">
                      <div class="custom-control custom-radio custom-control-inline">
                        <input type="radio" id="ja" name="default_language" class="custom-control-input">
                        <label class="custom-control-label" for="ja">默认</label>
                      </div>
                    </td>
                    <td class="align-middle">ja</td>
                    <td class="align-middle"></td>
                    <td class="align-middle" lang="ja">日本語</td>
                    <td class="align-middle" lang="ja"></td>
                    <td class="align-middle">英里 mi</td>
                    <td class="align-middle">ltr</td>
                    <td class="align-middle">
                      <button type="button" class="btn btn-outline-info btn-sm">配置</button>
                    </td>
                    <td class="align-middle">
                      <button type="button" class="btn btn-outline-primary btn-sm" data-toggle="modal" data-target="#language">修改</button>
                      <a href="#" class="btn btn-link btn-sm text-danger" role="button">删除</a>
                    </td>
                  </tr>
                  <tr>
                    <td class="align-middle"><input type="number" class="form-control" value="6" style="width:100px;"></td>
                    <td class="align-middle">
                      <div class="custom-control custom-radio custom-control-inline">
                        <input type="radio" id="ko-KR" name="default_language" class="custom-control-input">
                        <label class="custom-control-label" for="ko-KR">默认</label>
                      </div>
                    </td>
                    <td class="align-middle">ko</td>
                    <td class="align-middle">KR</td>
                    <td class="align-middle" lang="ko-KR">한국어</td>
                    <td class="align-middle" lang="ko-KR">대한민국</td>
                    <td class="align-middle">公里 km</td>
                    <td class="align-middle">ltr</td>
                    <td class="align-middle">
                      <button type="button" class="btn btn-outline-info btn-sm">配置</button>
                    </td>
                    <td class="align-middle">
                      <button type="button" class="btn btn-outline-primary btn-sm" data-toggle="modal" data-target="#language">修改</button>
                      <a href="#" class="btn btn-link btn-sm text-danger" role="button">删除</a>
                    </td>
                  </tr>
                </tbody>
              </table>
              <button type="submit" class="btn btn-success ml-3">更新</button>
              <button type="button" class="btn btn-sm btn-link ml-3 text-secondary" data-toggle="modal" data-target="#language"><i class="fas fa-plus-circle"></i> 新增</button>
            </div>
          </div>
          <!-- Setting End -->

        </div>
      </div>
    </div>

    <!-- language Modal -->
    <div class="modal fade" id="language" tabindex="-1" role="dialog" aria-labelledby="language" aria-hidden="true">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel">语言设置</h5>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button>
          </div>
          <div class="modal-body">
            <form>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">显示顺序</label>
                <div class="col-sm-9">
                  <input type="number" class="form-control" value="1">
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">语言代码</label>
                <div class="col-sm-9">
                  <select class="custom-select">
                    <option selected>请选择语言代码</option>
                    <option value="zh-Hans">Chinese (Simplified) - 简体中文 > zh-Hans</option>
                    <option value="zh-Hant">Chinese (Traditional) - 繁體中文 > zh-Hant</option>
                    <option value="en">English - English > en</option>
                    <option value="en">Japanese - 日本語 > ja</option>
                    <option value="en">Korean - 한국어 > ko</option>
                  </select>
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">语言地区</label>
                <div class="col-sm-9">
                  <div class="custom-control custom-radio custom-control-inline">
                    <input type="radio" id="area_status_false" name="area_status" value="false" class="custom-control-input" data-toggle="collapse" data-target="#area_collapse.show" aria-expanded="false" aria-controls="collapse" checked>
                    <label class="custom-control-label" for="area_status_false">不启用</label>
                  </div>
                  <div class="custom-control custom-radio custom-control-inline">
                    <input type="radio" id="area_status_true" name="area_status" value="true" class="custom-control-input" data-toggle="collapse" data-target="#area_collapse:not(.show)" aria-expanded="false" aria-controls="collapse">
                    <label class="custom-control-label" for="area_status_true">启用</label>
                  </div>
                  <small id="Help" class="form-text text-muted">如果语言不需要区分地区，则不用启用地区代码</small>
                </div>
              </div>
              <div class="collapse" id="area_collapse">
                <div class="form-group row">
                  <label for="label" class="col-sm-3 col-form-label">地区代码</label>
                  <div class="col-sm-9">
                    <div class="input-group mb-3">
                      <select class="form-control">
                        <option value="1" selected>Asia</option>
                        <option value="2">Africa</option>
                        <option value="3">North America</option>
                        <option value="4">South America</option>
                        <option value="5">Antarctica</option>
                        <option value="6">Europe</option>
                        <option value="7">Oceania</option>
                      </select>
                      <select class="form-control">
                        <option value="CN" selected>China - 中国大陆 > CN</option>
                        <option value="HK">Hong Kong - 香港 > HK</option>
                        <option value="MO">Macao - 澳門 > MO</option>
                        <option value="TW">Taiwan - 台灣 > CN</option>
                        <option value="SG">Singapore - 新加坡 > SG</option>
                        <option value="JP">Japanese - 日本 > JP</option>
                        <option value="KR">Korea, Republic Of - 대한민국 > KR</option>
                        <option value="KP">Korea, Democratic People's Republic Of - 북한 > KP</option>
                      </select>
                    </div>
                  </div>
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">长度单位</label>
                <div class="col-sm-9">
                  <select class="custom-select">
                    <option selected>请选择长度单位</option>
                    <option value="km">公里 km</option>
                    <option value="mi">英里 mi</option>
                  </select>
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">日期格式</label>
                <div class="col-sm-9">
                  <select class="custom-select">
                    <option value="yyyy-mm-dd" selected>yyyy-mm-dd</option>
                    <option value="yyyy/mm/dd">yyyy/mm/dd</option>
                    <option value="yyyy.mm.dd">yyyy.mm.dd</option>
                    <option value="mm-dd-yyyy">mm-dd-yyyy</option>
                    <option value="mm/dd/yyyy">mm/dd/yyyy</option>
                    <option value="mm.dd.yyyy">mm.dd.yyyy</option>
                    <option value="dd-mm-yyyy">dd-mm-yyyy</option>
                    <option value="dd/mm/yyyy">dd/mm/yyyy</option>
                    <option value="dd.mm.yyyy">dd.mm.yyyy</option>
                  </select>
                  <small id="Help" class="form-text text-muted">使用 yyyy 表示年，mm 表示月，dd 表示天。</small>
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">人性化时间</label>
                <div class="col-sm-9">
                  <div class="input-group">
                    <div class="input-group-prepend">
                      <span class="input-group-text" style="width:130px;">{n} minute ago</span>
                    </div>
                    <input type="text" class="form-control" id="basic-url" aria-describedby="basic-addon3">
                  </div>
                  <div class="input-group">
                    <div class="input-group-prepend">
                      <span class="input-group-text" style="width:130px;">{n} hour ago</span>
                    </div>
                    <input type="text" class="form-control" id="basic-url" aria-describedby="basic-addon3">
                  </div>
                  <div class="input-group">
                    <div class="input-group-prepend">
                      <span class="input-group-text" style="width:130px;">{n} day ago</span>
                    </div>
                    <input type="text" class="form-control" id="basic-url" aria-describedby="basic-addon3">
                  </div>
                  <div class="input-group">
                    <div class="input-group-prepend">
                      <span class="input-group-text" style="width:130px;">{n} month ago</span>
                    </div>
                    <input type="text" class="form-control" id="basic-url" aria-describedby="basic-addon3">
                  </div>
                  <small id="Help" class="form-text text-muted">人性化时间格式变量名 {n}</small>
                </div>
              </div>
            </form>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-success">提交</button>
          </div>
        </div>
      </div>
    </div>

    <!-- JavaScript -->
    <script src="assets/js/jquery-3.5.1.slim.min.js"></script>
    <script src="assets/js/bootstrap.bundle.min.js"></script>
    <script src="assets/js/backend.js"></script>
  </body>
</html>